package com.yunc.shop.feignclient;

import com.yunc.shop.domain.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * get请求实体类，@SpringQueryMap
 * post请求，@ResponseBody
 *
 * @author taocongcong
 * @create 2020-12-17 16:40
 */
@FeignClient(name = "yunc-shop")
public interface UserFeignClient {

    @GetMapping("/user/{id}")
    UserDTO getById(@PathVariable(value = "id") String id);

}
